import Vue from 'test';
import Loading from './index.vue';

export default function(){
    console.log("=====")
    let loadCom = Vue.extend(Loading);
    let vm = new loadCom();
    vm.$mount();
    document.body.appendChild(vm.$el);

    Vue.prototype.$loading = {
        show(){
            vm.isShow = true;
        },
        hide(){
            vm.isShow = false;
        }
    }
}